//
//  AlertV.m
//  YYPHSpeedJump
//
//  Created by sujiang on 16/1/12.
//  Copyright © 2016年 sujiang. All rights reserved.
//

#import "AlertV.h"

@implementation AlertV

- (instancetype) initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self addSubviews];
        self.backgroundColor = kColors(255, 255, 255, 1);
    }
    return self;
}

- (void)addSubviews
{
    self.titleLb = [[UILabel alloc] initWithFrame:CGRectMake(20, 15, self.width - 40, 40)];
    self.titleLb.font = [UIFont systemFontOfSize:14];
    [self addSubview:self.titleLb];
    self.gotoCZBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.gotoCZBtn.frame = CGRectMake(30, self.titleLb.bottom + 20, 100, 30);
    [self addSubview:self.gotoCZBtn];
    
    [self.gotoCZBtn setBackgroundImage:[UIImage imageNamed:@"qwcz"] forState:(UIControlStateNormal)];
    
    self.ignoreBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.ignoreBtn.frame = CGRectMake(self.width - 30 - 100, self.gotoCZBtn.top, 100, 30);
    [self addSubview:self.ignoreBtn];
    self.titleLb.numberOfLines = 0;
    self.layer.cornerRadius = 8;
    self.layer.masksToBounds = YES;

    
    
}


@end
